package net.fltx.taskmgr.win32api;

import com.sun.jna.Structure;

import java.util.Arrays;
import java.util.List;

public class Rect extends Structure {
    public int left;
    public int top;
    public int right;
    public int bottom;

    public Rect(){}
    public Rect(int left,int top,int right ,int bottom){
        this.left=left;
        this.top=top;
        this.right=right;
        this.bottom=bottom;
    }

    @Override
    public List<String> getFieldOrder(){
        return Arrays.asList(new String[]{"left","top","right","bottom"});
    }

    @Override
    public String toString() {
        return "Rect{" +
                "left=" + left +
                ", top=" + top +
                ", right=" + right +
                ", bottom=" + bottom +
                '}';
    }
}
